<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no" />
    <title>{{$role->display_name}}</title>
    <link rel="stylesheet" href="{{asset('/addons/jquery-weui-build/css/weui.min.css')}}">
    <link rel="stylesheet" href="{{asset('/addons/jquery-weui-build/css/jquery-weui.css')}}">
    <link rel="stylesheet" href="{{asset('/css/system/iconfont.css')}}">
    <link rel="stylesheet" href="/css/system/common.css?v=2018121401">
    <link rel="stylesheet" href="/css/system/perform-manage.css?v=2018121401">
    @include('sysadmin.head')
</head>
<body ontouchstart>
<div class="mian-container">
    <div class="perform-manage">
        <div class="weui-cells">
          <div class="weui-cell">
            <div class="weui-cell__bd">
              <p>成员</p>
            </div>
            <div class="weui-cell__ft">
                <span class="circle-span span-score">{{substr($role->display_name,0,3)}}</span>
            </div>
          </div>
        </div>
        <ul class="list-img" style="text-align: center;">
            @foreach($admins as $a)
                <li>
                    <a href="{{url('/sysadmin/permission/admin-scopelist?roleid='.$role->id.'&adminid='.$a->user_id)}}">
                        <img src="{{userlogo($a->user_id)}}">
                        <p>{{getUsername($a->user_id)}}</p>
                    </a>
                </li>
            @endforeach
            <li>
                <img src="/img/change.png" style="width: 29px;height: 29px;margin-top: 14px;">
            </li>
            <li>
                <a href="{{url('/sysadmin/permission/add-admin?roleid='.$role->id)}}"><img src="/img/add1.png"></a>
            </li>
        </ul>
        <p  class="user-p">交换管理员权限后本账号将不再拥有管理权限</p>
        <div class="weui-cells">
          <div class="weui-cell">
            <div class="weui-cell__bd">
              <p>本组权限</p>
            </div>
            <div class="weui-cell__ft">
                {{substr($role->display_name,0,6)}}
            </div>
          </div>
        </div>
    </div>
    <!--阴影遮罩-->
    <div class="list-shadow"></div>
    <!-- 隐藏考核按钮部分-->
    @include('sysadmin.admin-caidan')
</div>
<script src="{{asset('/kaohe/js/jquery-2.1.4.min.js')}}"></script>
<script src="{{asset('/addons/jquery-weui-build/js/fastclick.js')}}"></script>
<script>
    $(function() {
        document.documentElement.style.fontSize = document.documentElement.clientWidth / 7.5 + 'px';
        FastClick.attach(document.body);
    });
</script>
<script src="{{asset('/addons/jquery-weui-build/js/jquery-weui.min.js')}}"></script>
<script>
    $(document).ready(function () {
        $('.kaohe-item').click(function(){
            $('.show-hidden').toggle();
        })
        $('.admin-item').click(function(){
            $('.front-show-hidden').toggle();
        });
    })
</script>
</body>
</html>